BEGIN;

CREATE TABLE school_type (
	id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
	object_state VARCHAR(30) NOT NULL,
	sid VARCHAR(32) NOT NULL,
	name VARCHAR(25) NOT NULL,
	user_id INT(11) NOT NULL,
	FOREIGN KEY (user_id) REFERENCES user(id) ON DELETE CASCADE,
	UNIQUE (sid),
	UNIQUE (name, user_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

COMMIT;